#ifndef MYPUSHBUTTON_H
#define MYPUSHBUTTON_H

#include <QPushButton>
#include<QMouseEvent>
#include<QPropertyAnimation>

class MyPushButton : public QPushButton
{
    Q_OBJECT
public:
   // explicit MyPushButton(QWidget *parent = nullptr);

    MyPushButton(QString normal,QString pressImg="");

    //成员属性，保存用户传入的默认显示路径以及按下后现实的图片路径

    QString newNormalImgPath;
    QString newPressImgPath;

    //弹跳特效
    void zoom1();
    void zoom2();

    void mousePressEvent(QMouseEvent*e);
    void mouseReleaseEvent(QMouseEvent*e);


signals:

public slots:
};

#endif // MYPUSHBUTTON_H
